%include 'functions.asm'
SECTION .data
SECTION .text
	global  _start
extern mem
extern mfr
_start:
	push ebp
	mov ebp,esp
	sub esp,16
	push 4
	call mem
	mov [ebp-4],eax
	mov ebx,[ebp-4]
	mov DWORD [ebp-8],ebx
	mov edx,10
	mov eax,DWORD [ebp-8]
	mov DWORD [eax],edx
	mov ebx,DWORD [ebp-8]
	mov eax,[ebx]
	mov [ebp-12],eax
	mov eax,[ebp-12]
	call iprintLF
	mov eax,[ebp-8]
	call iprintLF
	push DWORD [ebp-8]
	call mfr
	mov [ebp-16],eax
	call quit
